<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
		<form  action="" method="get" class="form-inline definewidth m20">
			 <button type="button" class="btn btn-success"  onclick="addForum();" >添加版块</button>
	  	</form>
		<table class="table table-bordered table-hover definewidth m10">
			 <thead>
			    <tr>
			      	<th><strong>序号</strong></th>
					<th><strong>版块名称</strong></th>
					<th><strong>操作</strong></th>
			    </tr>
			   </thead>
			   <?php foreach($forum_list as $key=>$forum){?>
			  <tr id="row_<?php echo $forum['id'];?>">
				<td><?php echo $forum['id'];?></td>
				<td><?php echo $forum['name'];?></td>
				<td>
				<a href="javascript:;" dataid="<?php echo $forum['id'];?>" ndata="<?php echo $forum['name'];?>" onclick="editForum(this);">编辑</a>
				<a href="javascript:;" onclick="removeForum(<?php echo $forum['id'];?>,'sec');">删除</a>
				</td>
			  </tr>
			  <?php }?>	
			  	<tr>
			  	<td colspan="12"  class="invbd_page"><?php echo $this->pagination->create_links();?></td>
			  	</tr>
		</table>
</div>

<div id="dialog" title="系统提示" style="display:none;">
<div id="msg" style="text-align:center;color:red">&nbsp;</div>
<input type="hidden" name="id" id="id" />
<input type="hidden" name="func" id="func" value="sec"/>
版块名称：<input type="text" name="name" id="name" /> 
</div>


<div id="adddialog" title="系统提示" style="display:none;">
<div id="addmsg" style="text-align:center;color:red">&nbsp;</div>
<input type="hidden" name="add_func" id="add_func" value="sec"/>
版块名称：<input type="text" name="add_name" id="add_name" /> <br /><br />
</div>
